package com.hist.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @auther Ren Gaoshuai
 * @date 2021-04-06 22:00
 * 前置通知
 **/
public class Log implements MethodBeforeAdvice {
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("将要执行"+target.getClass().getName()+"类的"+method.getName()+"方法！");
    }
}
